package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {

    //1.新建权限
    public void add(Permission permission);

    //2.权限分页查询
   public PageResult pageQuery(QueryPageBean queryPageBean);

   //3.删除权限
    public void deleteById(Integer id);

    //4.查询权限的所有信息
    public List<Permission> findAll();
}
